@extends('admin.layout.layout')
@section('content')
    <div class="mws-panel grid_8">
        <div class="mws-panel-header">
            <span>添加分类</span>
        </div>
        <div class="mws-panel-body no-padding">
            <form action="/admin/attr/updata/{{$data['attr_id']}}/{{$data_type['type_id']}}" method="post" class="mws-form">
                {{--<input type="hidden" name="type_id" value="{{$data_type['type_id']}}">--}}
                {{ csrf_field()}}
                <fieldset class="mws-form-inline">
                    <div class="mws-form-row bordered">
                        <label class="mws-form-label">属性名称:</label>
                        <div class="mws-form-item">
                            <input type="text" class="small" name="attr_name" value="{{$data['attr_name']}}">
                        </div>
                    </div>
                </fieldset>
                <fieldset class="mws-form-inline">
                    <div class="mws-form-row bordered">
                        <label class="mws-form-label">可选值:</label>
                        <div class="mws-form-item">
                            <textarea class="small" name="attr_values">{{$data['attr_values']}}</textarea>
                        </div>
                    </div>
                </fieldset>
                <div class="mws-button-row">
                    <input type="submit" class="btn btn-danger" value="提交">
                    <input type="reset" class="btn " value="重置">
                </div>
            </form>
        </div>
    </div>
    @endsection
